package com.yxw.live_vod_boot.controller;


/*
import com.yxw.yxnet_cd_center.common.utils.BaseResult;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import com.yxw.live_vod_boot.utils.PageUtils;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import io.swagger.annotations.Api;
import com.yxw.live_vod_boot.dto.YxLiveWatchLogDTO;
import com.yxw.live_vod_boot.dto.YxLiveWatchLogAddDTO;
import com.yxw.live_vod_boot.dto.YxLiveWatchLogQueryDTO;
import com.yxw.live_vod_boot.entity.YxLiveWatchLogEntity;
import com.yxw.live_vod_boot.service.IYxLiveWatchLogService;
 */
 
 
/*** 
*@author Jiaxu.Huang
*@date 2023/12/18 17:59:06
*@update 2023/12/18 17:59:06

@Api(value = "直播观看记录", tags = {"直播观看记录管理"},description="直播观看记录管理")
@RestController
@RequestMapping("/yxlivewatchlog")
* **/
public class YxLiveWatchLogController
{
    //@Autowired
    //private IYxLiveWatchLogService oYxLiveWatchLogService;
    /*** 
    * 增加直播观看记录
    * @param oYxLiveWatchLogDTO
    * @return BaseResult
    
    @ApiOperation(value ="新增直播观看记录(YxLiveWatchLog)", notes = "此接口用于新增直播观看记录")
    @ApiResponses({@ApiResponse(code = 200,message = "OK",response = YxLiveWatchLogEntity.class),})
    @PostMapping("/addYxLiveWatchLog")
    public BaseResult addYxLiveWatchLog(@RequestBody @Valid YxLiveWatchLogAddDTO oYxLiveWatchLogAddDTO)
    {
        return oYxLiveWatchLogService.insertYxLiveWatchLog(oYxLiveWatchLogAddDTO);
    }**/
    /*** 
    * 修改直播观看记录
    * @param oYxLiveWatchLogDTO
    * @return BaseResult
   
    @ApiOperation(value ="修改直播观看记录(YxLiveWatchLog)",notes = "此接口用于修改直播观看记录信息")
    @ApiResponses({@ApiResponse(code = 200,message = "OK",response = BaseResult.class),})
    @PostMapping("/editYxLiveWatchLog")
    public BaseResult editYxLiveWatchLog(@RequestBody @Valid YxLiveWatchLogDTO oYxLiveWatchLogDTO)
    {
        return oYxLiveWatchLogService.updateYxLiveWatchLogById(oYxLiveWatchLogDTO);
    } **/
    /*** 
    * 删除直播观看记录
    * @param id
    * @param oYxLiveWatchLogDTO
    * @return BaseResult
    
    @ApiOperation(value ="删除直播观看记录YxLiveWatchLog",notes = "此接口用于删除直播观看记录信息")
    @ApiResponses({@ApiResponse(code = 200,message = "OK",response = BaseResult.class),})
    @GetMapping("/removeYxLiveWatchLog/{id}")
    public BaseResult removeYxLiveWatchLog(@PathVariable @NotNull(message = "id不能为空")Long id)
    {
            return oYxLiveWatchLogService.deleteYxLiveWatchLogById(id);
    }**/
    /*** 
    * 根据id查找直播观看记录
    * @param id
    * @param oYxLiveWatchLogDTO
    * @return YxLiveWatchLogEntity
   
    @ApiOperation(value ="根据id查找直播观看记录",notes = "此接口用于根据id查找直播观看记录信息")
    @ApiResponses({@ApiResponse(code = 200,message = "OK",response = YxLiveWatchLogEntity.class),})
    @GetMapping("/getYxLiveWatchLogInfo/{id}")
    public BaseResult getYxLiveWatchLogInfo(@PathVariable @NotNull(message = "id不能为空")Long id)
    {
        return BaseResult.success(oYxLiveWatchLogService.selectYxLiveWatchLogById(id));
    } **/
    /*** 
    * 自定义分页查询直播观看记录
    * @param currentPage 当前页
    * @param pageSize 分页大小
    * @param oYxLiveWatchLogDTO
    * @return Page
   
    @ApiOperation(value ="自定义分页查询直播观看记录",notes = "此接口用于自定义分页查询直播观看记录信息")
    @ApiResponses({@ApiResponse(code = 200,message = "OK",response = YxLiveWatchLogEntity.class),})
    @PostMapping("/selectYxLiveWatchLogPage/{currentPage}/{pageSize}")
    public BaseResult selectYxLiveWatchLogPage(@PathVariable int currentPage,@PathVariable int pageSize,@RequestBody YxLiveWatchLogQueryDTO oYxLiveWatchLogQueryDTO)
    {
        return BaseResult.success(PageUtils.get(oYxLiveWatchLogService.selectYxLiveWatchLogPage(currentPage,pageSize,oYxLiveWatchLogQueryDTO)));
    } **/
    /*** 
    * 自定义不分页查询直播观看记录
    * @param oYxLiveWatchLogDTO
    * @return List<YxLiveWatchLogEntity>
    
    @ApiOperation(value ="自定义不分页查询直播观看记录",notes = "此接口用于自定义不分页查询直播观看记录信息")
    @ApiResponses({@ApiResponse(code = 200,message = "OK",response = YxLiveWatchLogEntity.class),})
    @PostMapping("/selectYxLiveWatchLogList")
    public BaseResult selectYxLiveWatchLogList(@RequestBody YxLiveWatchLogQueryDTO oYxLiveWatchLogQueryDTO)
    {
        return BaseResult.success(oYxLiveWatchLogService.selectYxLiveWatchLogList(oYxLiveWatchLogQueryDTO));
    }**/
    /*** 
    * 自定义统计直播观看记录
    * @param oYxLiveWatchLogDTO
    * @return int
  
    @ApiOperation(value ="自定义统计直播观看记录",notes ="此接口用于自定义统计直播观看记录记录条数")
    @PostMapping("/selectYxLiveWatchLogCount")
    public BaseResult selectYxLiveWatchLogCount(@RequestBody YxLiveWatchLogQueryDTO oYxLiveWatchLogQueryDTO)
    {
        return BaseResult.success(oYxLiveWatchLogService.selectYxLiveWatchLogCount(oYxLiveWatchLogQueryDTO));
    }  **/
}
    

